package com.lindroy.gankmvp.mvp.model.bean

import com.google.gson.annotations.SerializedName

/**
 * @author Lin
 * @date 2021/7/2
 * @function
 */

data class HttpResult<T>(
    val data: T,
    val status: Int
) {
    //是否请求成功
    val success: Boolean
        get() = status == 100
}

data class CategoryResp(
    @SerializedName("_id") val id: String,
    val coverImageUrl: String,
    val desc: String,
    val title: String,
    val type: String
)
